home *** CD-ROM | disk | FTP | other *** search
- Path: svnews.ubinet.ubs.com!ubszh!ubszh!jis
- From: jis@ubszh.net.ch (Johnston Ian (by ubsswop))
- Newsgroups: comp.lang.c++
- Subject: Re: Why Do I Use An Ampersand in Member Class Parameters?
- Date: 31 Jan 1996 08:47:16 GMT
- Organization: UBS
- Distribution: world
- Message-ID: <4enaak$o1h@ubszh.fh.zh.ubs.com>
- References: <4emnv2$n5o@alcor.usc.edu>
- NNTP-Posting-Host: nol2179.fh.zh.ubs.com
-
- In article <4emnv2$n5o@alcor.usc.edu>, wawda@alcor.usc.edu (Abu Wawda) writes:
- |> class Simple
- |> {
- |> public:
- |> Simple();
- |> int operator += (const Simple &);
- |> private:
- |> int data;
- |> };
- |>
- |> I have seen many examples of this but I what I don't understand is why
- |> there is an amersand after Simple? I would wind up implementating the
- |> function as something like the following:
-
- My suggestion is you obtain a C++ text book -- any C++ text book -- and
- read it.
-
- You might as well ask what is "int".
-
- Ian
-